home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
050
/
madtrb4.arc
/
ERRMESSG.LIB
< prev
next >
Wrap
Text File
|
1984-12-02
|
1KB
|
34 lines
{@@@@@@@@@@@ copyright (C) 1984 by Neil J. Rubenking @@@@@@@@@@@@@@@@@@@@@@@@
The purchaser of these procedures and functions may include them in COMPILED
programs freely, but may not sell or give away the source text.
This function can be used after any call to the MSDOS or INTR procedures
that return an error message in AX. Usually the signal that AX contains
an error message is for the CARRY FLAG to be set to 1.
The test for CARRY FLAG set to 1 is "if Flags and 1 = 1". }
type
Message_type = string[40];
{@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@}
function message(code:byte):message_type;
begin
case code of
2: message := 'File not found.';
3: message := 'Path not found.';
4: message := 'Too many open files (no handles left).';
5: message := 'Access denied.';
6: message := 'Invalid handle.';
7: message := 'Memory control blocks destroyed';
8: message := 'Insufficient memory';
9: message := 'Invalid memory block address.';
10: message := 'Invalid environment.';
11: message := 'Invalid format.';
12: message := 'Invalid access code.';
13: message := 'Invalid data.';
15: message := 'Invalid drive was specified.';
16: message := 'Attempt to remove current directory.';
17: message := 'Not same device.';
18: message := 'No more files.';
else message := 'Error.'
end;
end;